package com.zja.www.dao;

import com.zja.www.entity.Schedule;
import java.sql.Timestamp;
import java.util.List;

public interface ScheduleDao {
    boolean insert(Schedule schedule);

    boolean update(Schedule schedule);

    boolean delete(int scheduleId);

    Schedule getById(int scheduleId);

    List<Schedule> getByDate(Timestamp date);

    List<Schedule> getByDoctor(int doctorId);

    List<Schedule> getByDepartment(int departmentId);

    boolean checkScheduleConflict(int doctorId, Timestamp date, String startTime, String endTime);

}
